<?php
	/**
	 * 获取配置
	 */
    class GetConfig extends APIBase {
		
		public $tag = "GetConfig";
    	public $isLogin = false;
		
		public function before() {
			$this->initCacheRedis();
			return true;
		}
		
		public function logic() {
			
			$bank_minbankmoney  = Game::$bank_minbankmoney;//
			$bank_transfertimes = Game::$bank_transfertimes;//
			$bank_min_transfertimes = Game::$bank_min_transfertimes;//
			$bank_maxday = Game::$bank_maxday;//
			 //$bank_taxrate  = Game::$bank_taxrate;
			$bank_taxrate = Game::$bank_taxrate;//
			$bank_is_vip = Game::$bank_is_vip;//
			
			$is_show_pay = Game::$is_show_pay;//
			$is_transfer = Game::$is_transfer;//
			//$ann = $this->cache_redis->hMGet("ha:", array("id","title","content","image_url"));
			$data = array(
			          'is_show_pay'=> $is_show_pay,
			          'is_transfer' => $is_transfer,
					  'bank_minbankmoney'=>$bank_minbankmoney,//玩家拥有多少钱才可以转账
					  'bank_transfertimes'=>$bank_transfertimes,//每天最多转多少次
					  'bank_min_transfertimes'=>$bank_min_transfertimes,//每次最低转账金额
					  'bank_maxday'=>$bank_maxday,//每户每天最高转账金额
					  'bank_taxrate'=>$bank_taxrate,//每次转账扣税
					  'bank_is_vip'=>$bank_is_vip//是否只有vip转账
					  
					  );
			
			$this->returnData($data);
			/*if ($ann) {	
				$this->returnData(array('id'=> (int)$ann['id'],'content' => $ann['content'], 'title' => $ann['title']));
			} else {
				$this->returnError(301,"server not set announcement");
			}
*/
		}
		
        public function after() {
			$this->deinitCacheRedis();
		}
    }
?>
